import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:thinking/config/_.dart';
import 'package:thinking/utils/_.dart';


class Empty extends StatelessWidget{

  final Widget child;
  final bool isShow;

  Empty({ required this.child,this.isShow:false});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: Screen.width(context),
      child: isShow
          ? Container(
        padding: EdgeInsets.only(top: 100),
        alignment: Alignment.center,
        child: Column(
          children: [
            Icon(
              Icons.drafts,
              size: 52,
              color: ColorConfig.TextColor,
            ),
            Text("暂无数据")
          ],
        ),
      )
          : this.child,
    );
  }

}